package com.itheima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.wemedia.pojo.WmNews;
import org.apache.ibatis.annotations.Delete;

import java.io.Serializable;

/**
 * <p>
 * 自媒体图文内容信息表 Mapper 接口
 * </p>
 *
 * @author czh
 * @since 2021-08-20
 */
public interface WmNewsMapper extends BaseMapper<WmNews> {

    @Delete("delete from wm_news where id=#{id} and enable=0 and status in(0,1,2,3,4,8)")
    int deleteNewById(Serializable id);
}
